<html>
<body>
Reports cases in which a loop contains the <b>if</b> statement that can end with <b>break</b>.
<p>
  For instance, consider the following code:
<pre><code>
  <b>boolean</b> found = <b>false</b>;
  <b>for</b> (<b>int</b> i = 0; i &lt; arr.length; i++) {
    <b>if</b> (Objects.equals(value, arr[i])) {
      found = <b>true</b>;
    }
  }
</code></pre>
In this case, iterations have no effect after the condition is met, and you can skip them by adding a <b>break</b>.
<pre><code>
  <b>boolean</b> found = <b>false</b>;
  <b>for</b> (<b>int</b> i = 0; i &lt; arr.length; i++) {
    <b>if</b> (Objects.equals(value, arr[i])) {
      found = <b>true</b>;
      <b>break</b>;
    }
  }
</code></pre>
<!-- tooltip end -->
<p>
  <small>New in 2019.2</small>
</p>
</body>
</html>